<?php

	class Facebook_fan_page_model extends CI_Model {

		protected $__tbname = 'facebook_fan_page';
		protected $__dbconf = 'default';

		var $id;	//varchar(20)	Primary Key		NOT NULL
		var $name;	//varchar(100)			NULL
		var $picture;	//varchar(250)			NULL
		var $likes;	//int(11)			NULL
		var $link;	//varchar(250)			NULL
		var $category;	//varchar(250)			NULL
		var $website;	//varchar(250)			NULL
		var $username;	//varchar(100)			NULL
		var $city;	//varchar(50)			NULL
		var $country;	//varchar(50)			NULL
		var $description;	//varchar(500)			NULL
		var $misison;	//varchar(500)			NULL
		var $products;	//varchar(200)			NULL
		var $phone;	//varchar(20)			NULL
		var $checkins;	//int(11)			NULL

		protected $__validation_rule = array(
			'id' => array('key' => 'PRI', 'type' => 'varchar', 'size' => 20, 'null' => FALSE),
			'name' => array('type' => 'varchar', 'size' => 100, 'null' => TRUE),
			'picture' => array('type' => 'varchar', 'size' => 250, 'null' => TRUE),
			'likes' => array('type' => 'int', 'null' => TRUE),
			'link' => array('type' => 'varchar', 'size' => 250, 'null' => TRUE),
			'category' => array('type' => 'varchar', 'size' => 250, 'null' => TRUE),
			'website' => array('type' => 'varchar', 'size' => 250, 'null' => TRUE),
			'username' => array('type' => 'varchar', 'size' => 100, 'null' => TRUE),
			'city' => array('type' => 'varchar', 'size' => 50, 'null' => TRUE),
			'country' => array('type' => 'varchar', 'size' => 50, 'null' => TRUE),
			'description' => array('type' => 'varchar', 'size' => 500, 'null' => TRUE),
			'misison' => array('type' => 'varchar', 'size' => 500, 'null' => TRUE),
			'products' => array('type' => 'varchar', 'size' => 200, 'null' => TRUE),
			'phone' => array('type' => 'varchar', 'size' => 20, 'null' => TRUE),
			'checkins' => array('type' => 'int', 'null' => TRUE)
		);
	}
